/*$Id$*/
package com.leetech.gwt.server;


import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.leetech.gwt.client.WidgetService;
import com.leetech.gwt.client.WidgetController.WidgetDTO;


public class WidgetServiceImpl extends RemoteServiceServlet implements
        WidgetService {

    // Static initialization-------------------------------------------

    /** XLogger.<OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST|ALL> */
//    private static XLogger log;

    public WidgetDTO[] syncWidgetDTOs(WidgetDTO[] clientDTOs) {
        for(int i=0;i<clientDTOs.length;i++){
            clientDTOs[i].setLabel("Foo"+ i);
            clientDTOs[i].setValues(new String[]{"Bar 1","Bar 2","Bar 3"});
            }
        return clientDTOs;
    }

    // Instance variables----------------------------------------------
    // Constructors----------------------------------------------------
    // Methods---------------------------------------------------------
    // Inner Classes --------------------------------------------------
}

